package com.qfedu.openplateform.manager.service.impl;

import com.qfedu.openplateform.manager.dao.ApiMappingMapper;
import com.qfedu.openplateform.manager.entity.ApiMapping;
import com.qfedu.openplateform.manager.service.ApiMappingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
@Transactional
public class ApiMappingServiceImpl implements ApiMappingService {

    @Autowired
    private ApiMappingMapper apiMappingMapper;


    @Override
    public List<ApiMapping> getApiList() {
        return apiMappingMapper.getApiList();
    }

    @Override
    public String addApi(ApiMapping apiMapping) {
        apiMappingMapper.addApi(apiMapping);
        return "success";
    }

    @Override
    public String del(Integer[] ids) {
        apiMappingMapper.del(ids);
        return "success";
    }

    @Override
    public String update(ApiMapping apiMapping) {
        apiMappingMapper.update(apiMapping);
        return "success";
    }

}
